package website.digitalocean.chapter17;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/16 10:31
 * @version: 1.0
 */
public class FileSystemReceiverUtil {

    public static FileSystemReceiver fileSystemReceiver() {
        String property = System.getProperty("os.name");
        property = property.toLowerCase().replaceAll(" ", "");
        if (property.contains("windows")) {
            return new WindowsFileSystemReceiver();
        }
        return new UnixFileSystemReceiver();
    }
}
